package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Commodity;
import cn.wolfcode.trip.base.query.CommodityQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommodityMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Commodity record);

    Commodity selectByPrimaryKey(Long id);

    List<Commodity> selectAll();

    int updateByPrimaryKey(Commodity record);

    List<Commodity> query(@Param("qo") CommodityQueryObject qo);

    List<Commodity> types();
}